/* 公共样式文件 */

/* 页面加载动画 */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-loading .layui-icon {
    font-size: 24px;
    color: #009688;
    animation: layui-rotate 1s linear infinite;
}

/* 组件加载状态 */
.component-loading {
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 4px;
    margin: 10px 0;
}

.component-loading .layui-icon {
    font-size: 20px;
    color: #009688;
    animation: layui-rotate 1s linear infinite;
}

/* 导航激活状态 */
.layui-nav-tree .layui-nav-item.layui-this > a,
.layui-nav-tree .layui-nav-child .layui-this > a {
    background-color: #009688 !important;
    color: #fff !important;
}

/* 内容区域样式 */
.content-wrapper {
    padding: 20px;
}

.content-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.content-header h2 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* 卡片样式增强 */
.layui-card {
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
    border-radius: 4px;
}

.layui-card:hover {
    box-shadow: 0 2px 8px 0 rgba(0,0,0,.1);
}

/* 表格样式增强 */
.layui-table {
    border-radius: 4px;
    overflow: hidden;
}

.layui-table thead th {
    background-color: #f8f8f8;
    font-weight: 600;
}

/* 表单样式增强 */
.layui-form-item {
    margin-bottom: 15px;
}

.layui-form-label {
    font-weight: 500;
}

/* 按钮样式增强 */
.layui-btn {
    border-radius: 4px;
    transition: all 0.3s ease;
}

.layui-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px 0 rgba(0,0,0,.2);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .content-wrapper {
        padding: 10px;
    }
    
    .layui-card {
        margin-bottom: 10px;
    }
}

/* 错误提示样式 */
.error-container {
    text-align: center;
    padding: 50px 20px;
}

.error-container .layui-icon {
    font-size: 48px;
    color: #ff5722;
    margin-bottom: 20px;
}

.error-container h3 {
    color: #333;
    margin-bottom: 10px;
}

.error-container p {
    color: #999;
}

/* 成功提示样式 */
.success-container {
    text-align: center;
    padding: 50px 20px;
}

.success-container .layui-icon {
    font-size: 48px;
    color: #5fb878;
    margin-bottom: 20px;
}

/* 空数据样式 */
.empty-container {
    text-align: center;
    padding: 50px 20px;
}

.empty-container .layui-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-container p {
    color: #999;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    padding: 20px;
}

.load-more .layui-btn {
    min-width: 120px;
}

/* 工具栏样式 */
.toolbar {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

/* 统计卡片 */
.stat-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 图表容器 */
.chart-container {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}

.chart-container .chart-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.chart-container .chart-content {
    height: 300px;
    position: relative;
}